import React, {Component} from 'react';
class BlogDetails extends React.Component {
  constructor(props) {
    super(props)
    this.state = {
      details: this.props.details
    }
  }
  render () {
    return (<div>
      <h2>{this.state.details.title}</h2>
      <i>{this.state.details.time}</i>
      <p>{this.state.details.content}</p>
    </div>)
  }
}
export default BlogDetails